 <#ftl encoding="UTF-8" />
            <form id="form_data" class="form__data_content">
                <!-- 发货发令单 -->
                <div id="panelTop" style="position:relative; height:50px; border-bottom: 1px solid #ddd; background-color:#fff;">
                    <div id="btnPanel_01" style="position:absolute; display:inline-block; top:12px; left: 8px; width:auto; padding:0;">
                        <button type="button" name="_ButBack" id="ButBack" class="act__button" onclick="_InstancePageHeader.DoBack();"><i class="fa-all fa-1x fa-reply" style="margin-right:3px;"></i>返回</button>
                        <button type="button" name="_ButNew" id="ButNew" class="act__button" onclick="_InstancePageHeader.New();"><i class="fa-all fa-1x fa-plus" style="margin-right:3px;"></i>增加</button>
                        <button type="button" name="_ButSave" id="ButSave" class="act__button act__save" onclick="_InstancePageHeader.Save();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存</button>
                        <button type="button" name="_ButCheck" id="ButCheck" class="act__button" onclick="_InstancePageHeader.DoCheck();"><i class="fa-all fa-1x fa-eye" style="margin-right:3px;"></i>审核</button>
                        <button type="button" name="_ButUnCheck" id="ButUnCheck" class="act__button" onclick="_InstancePageHeader.Uncheck();"><i class="fa-all fa-1x fa-eraser" style="margin-right:3px;"></i>反审</button>
                        <button type="button" name="_ButPrint" id="ButPrint" class="act__button" onclick="_InstancePageHeader.DoPrintPreview();" style="margin-left:15px;"><i class="fa-all fa-1x fa-print" style="margin-right:3px;"></i>打印预览</button>
                    </div>
                    <div id="rec_position" style="position:absolute; display:inline-block; right:80px; top:18px; width:auto;">
                        <span id="rec_cur_row">15</span> / <span id="rec_total_rows">15</span>
                    </div>
                    <div class="panel__toolbar" style="position:absolute; display:inline-block; top:12px; right:20px;">
                        <div class="panel__toolbar_item">
                            <button type="button" class="toolbar__button" name="_ButPrev" id="ButPrev" title="前一条" onclick="_InstancePageHeader.PrevRecord();"><i class="fa-all fa-1x fa-angle-left" style="margin-right:3px;"></i></button>
                        </div>
                        <div class="panel__toolbar_item" disabled="disabled">
                            <button type="button" class="toolbar__button" name="_ButNext" id="ButNext" title="后一条" onclick="_InstancePageHeader.NextRecord();"><i class="fa-all fa-1x fa-angle-right" style="margin-right:3px;"></i></button>
                        </div>
                    </div>
                </div>
                <div class="data__table_wrapper">
                    <table class="data__table">
                        <colgroup>
                            <col style="width: 7%;" />
                            <col style="width: 20%;" />
                            <col style="width: 7%;" />
                            <col style="width: 15%;" />
                            <col style="width: 9%;" />
                            <col style="width: 15%;" />
                            <col style="width: 7%;" />
                            <col />
                        </colgroup>
                        <tbody>
                            <tr>
                                <td class="td__label">
                                    <label for="BillNo">发令单号<em>★</em></label>
                                </td>
                                <td>
                                    <input type="text" id="BillNo" name="_BillNo" value="" tabindex="1" style="width:98%;" />
                                </td>
                                <td class="td__label">
                                    <label for="CustomerName">客户<em>★</em></label>
                                </td>
                                <td>                       
                                    <input type="hidden" id="CustomerId" name="_CustomerId" tabindex="2" />
                                    <div id="ChoiceCustomer" class="form_input_dropdown_wrapper" style="width:100%;" onclick="_InstancePageHeader.DoChoiceCustomer();">
                                        <input type="text" id="CustomerName" name="_CustomerName" class="select-dropdown with_select_flag" readonly="readonly" style="color:#000;" tabindex="2" />
                                    </div>
                                </td>
                                <td class="td__label">
                                    <label for="DateOfDelivery">发货日期<em>★</em></label>
                                </td>
                                <td>
                                    <div id="ChoiceDateOfDelivery" class="form_input_dropdown_wrapper" style="width:135x;">
                                        <input type="text" id="DateOfDelivery" name="_DateOfDelivery" class="select-dropdown" readonly="readonly" style="color:#000;" tabindex="3" />
                                        <span class="dropdown_button"><i class="fa-all fa-1-1 fa-calendar"></i></span>
                                    </div>
                                </td>
                                <td class="td__label">
                                    <label for="Destination">目的港<em>★</em></label>
                                </td>
                                <td>
                                   <input type="text" id="Destination" name="_Destination" tabindex="4" style="width:100%;" />
                                </td>
                            </tr>
                            <tr>
                                <td class="td__label">
                                    <label for="ShippingTypeName">运输方式<em>★</em></label>
                                </td>
                                <td>
                                    <input type="hidden" id="ShippingTypeId" name="_ShippingTypeId" tabindex="5" />
                                    <div id="ChoiceShippingType" class="form_input_dropdown_wrapper" style="width:98%;" onclick="_InstancePageHeader.DoChoiceShippingType();">
                                        <input type="text" id="ShippingTypeName" name="_ShippingTypeName" class="select-dropdown with_select_flag" readonly="readonly" style="color:#000;" tabindex="5" />
                                    </div>
                                </td>
                                <td class="td__label">
                                    <label for="ResponsibleByName">负责人<em>★</em></label>
                                </td>
                                <td>
                                    <input type="hidden" id="ResponsibleBy" name="_ResponsibleBy" tabindex="6" />
                                    <div id="ChoiceResponsibleBy" class="form_input_dropdown_wrapper" style="width:135px;" onclick="_InstancePageHeader.DoChoiceResponsibleBy();">
                                        <input type="text" id="ResponsibleByName" name="_ResponsibleByName" class="select-dropdown with_select_flag" style="color:#000;" tabindex="6" />
                                    </div>
                                </td>
                                <td class="td__label">
                                    <label for="SoNo">主合同号</label>
                                </td>
                                <td colspan="3">
                                    <input type="text" id="SoNo" name="_SoNo" tabindex="7" style="width:100%;" readonly="readonly" />
                                </td>
                            </tr>
                            <tr>
                                <td class="td__label">
                                    <label for="IsAssortedColour">可混色</label>
                                </td>
                                <td style="position: relative;">
                                    <input type="checkbox" class="checkbox" id="IsAssortedColour" name="_IsAssortedColour" tabindex="8" />
                                    <div class="checkbox_lines" style="width:135px;"></div>
                                </td>
                                <td class="td__label">
                                    <label for="IsAssortedSize">可混码</label>
                                </td>
                                <td style="position: relative;">
                                    <input type="checkbox" class="checkbox" id="IsAssortedSize" name="_IsAssortedSize" tabindex="9" />
                                    <div class="checkbox_lines" style="width:135px;"></div>
                                </td>
                                <td class="td__label">
                                    <label for="IsNewNoPerDestination">按发货地重编号</label>
                                </td>
                                <td style="position: relative;">
                                    <input type="checkbox" class="checkbox" id="IsNewNoPerDestination" name="_IsNewNoPerDestination" tabindex="10" />
                                    <div class="checkbox_lines" style="width:135px;"></div>
                                </td>
                                <td class="td__label">
                                    <label for="IsNewNoPerColour">按颜色重编号</label>
                                </td>
                                <td style="position: relative;">
                                    <input type="checkbox" class="checkbox" id="IsNewNoPerColour" name="_IsNewNoPerColour" tabindex=11" />
                                    <div class="checkbox_lines" style="width:135px;"></div>
                                </td>
                            </tr>
                            <tr>
                                <td class="td__label" style="vertical-align:top; padding-top:8px;">
                                    <label for="Description">备注</label>
                                </td>
                                <td colspan="7">
                                    <textarea class="area" id="Description" name="_Description" tabindex="12" style="width:100%; height:49px; resize:none;"></textarea>
                                </td>
                            </tr>
                            <tr>
                                <td class="td__label">
                                    <label for="UpdatedByName">操作情况</label>
                                </td>
                                <td>
                                    <input type="text" id="UpdatedByName" name="_UpdatedByName" tabindex="13" style="width:90px;" readonly="readonly" />
                                    <input type="text" id="UpdatedDate" name="_UpdatedDate" tabindex="14" style="width:90px;" readonly="readonly" />
                                </td>
                                <td class="td__label">
                                    <label for="CheckedByName">审核情况</label>
                                </td>
                                <td colspan="5">
                                    <input type="text" id="CheckedByName" name="_CheckedByName" tabindex="15" style="width:90px;" readonly="readonly" />
                                    <input type="text" id="CheckedDate" name="_CheckedDate" tabindex="16" style="width:90px;" readonly="readonly" />
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </form>

            <input id="Action" type="hidden" value="<#if action?exists>${action}<#else>0</#if>" />
            <input id="HeaderId" type="hidden" value="<#if headerId?exists>${headerId}<#else>0</#if>" />
            <input id="QuotedFlag" type="hidden" value="0" /><!-- 被发货单引用标记 -->
            
            <!-- 明细部分 -->
            <div id="panelSlave" style="position:relative; top:0;">
                <!-- 折叠标记 -->
                <div id="hPanelSplitter" title="隐藏主表"><i class="fa-all fa-angle-double-up"></i></div>
                <!-- 明细内容 -->
                <ul id="tabPanelHeader" class="tabstrip" style="top:0; width:100%;">
                    <li id="menu_01" class="tabInactive" style="margin-left:25px;">
                        <div>
                            <span class="tab_stretch"><span class="tabtext"><abbr class="ls_01">本次发货的生产情况</abbr></span></span>
                        </div>
                    </li>
                    <li id="menu_02" >
                        <div>
                            <span class="tab_stretch"><span class="tabtext"><abbr class="ls_02">发货发令单明细</abbr></span></span>
                        </div>
                    </li>
                </ul>
                <div id="tabPanelData" class="tab__wrapper" style="top:0; height:auto;">
                    <!-- 本次发货生产明细 -->
                    <div id="tab_wrapper_01" class="tab__content" style="padding-top:5px; width:100%;">
                        <div id="panel_slave_butbar_01" style="clear:both; position:relative; top:3px; padding-left:8px; z-index:+1;">
                            <button type="button" name="_ButNewMoLines" id="ButNewMoLines" class="act__button act__save" onclick="_InstancePageLinesMo.NewLines();"><i class="fa-all fa-1x fa-plus" style="margin-right:3px;"></i>增加</button>
                            <button type="button" name="_ButSaveMoLines" id="ButSaveMoLines" class="act__button act__save" onclick="_InstancePageLinesMo.SaveLines();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存明细</button>
                        </div>
                        <div id="panel_slave_data_01" style="position:relative; top:10px; width:100%; padding:0 8px;">
                            <table id="tabHeader11" class="layout display" style="width:965px;">
                                <colgroup>
                                    <col style="width:36px;" />
                                    <col style="width:36px;" />
                                    <col style="width:160px;" />
                                    <col style="width:160px;" />
                                    <col />
                                    <col style="width:145px;" />
                                    <col style="width:145px;" />
                                    <col style="width:18px;" />
                                </colgroup>
                                <thead>
                                    <tr>
                                        <th style="text-align:center;">#</th>
                                        <th style="text-align:center;">删除</th>
                                        <th>订单合同号</th>
                                        <th>客户</th>
                                        <th>款号</th>
                                        <th class="edit__column">发货数受交付日期控制</th>
                                        <th class="edit__column">发货数受目的地控制</th>
                                        <th></th>
                                    </tr>
                                </thead>
                            </table>
                            <div id="divD11" class="grid__data_wrapper" style="border-left:none; overflow-y:scroll; width:965px;">
                                <table id="tabData11" class="responsive__table" style="margin-top:-1px;">
                                    <colgroup>
                                        <col style="width:36px;" />
                                        <col style="width:36px;" />
                                        <col style="width:160px;" />
                                        <col style="width:160px;" />
                                        <col />
                                        <col style="width:145px;" />
                                        <col style="width:145px;" />
                                    </colgroup>
                                    <tbody></tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <!-- 发货发令单明细 -->
                    <div id="tab_wrapper_02" class="tab__content" style="padding-top:5px; display:none;">
                        <div id="panel_slave_butbar_02" style="clear:both; position:relative; top:3px; padding-left:8px; z-index:+1;">
                            <button type="button" name="_ButSaveLines" id="ButSaveLines" class="act__button act__save" onclick="_InstancePageLines.SaveLines();"><i class="fa-all fa-1x fa-save" style="margin-right:5px;"></i>保存明细</button>
                            <button type="button" name="_ButDeleteLines" id="ButDeleteLines" class="act__button act__save" onclick="_InstancePageLines.BatchDeleteLines();"><i class="fa-all fa-1x fa-minus" style="margin-right:5px;"></i>批量删除</button>
                            <button type="button" name="_ButUpdateLinesStyleNoOrder" id="ButUpdateLinesStyleNoOrder" class="act__button act__save" onclick="_InstancePageLines.UpdateLinesStyleNoOrder();">改变款号顺序</button>
                        </div>
                        <div id="panel_slave_data_02" style="position:relative; top:10px; width:100%; padding:0 8px;">
                            <table id="tabHeader21" class="layout display">
                                <colgroup>
                                    <col style="width:27px;" />
                                    <col style="width:36px;" />
                                    <col style="width:36px;" />
                                    <col style="width:120px;" />
                                    <col style="width:260px;" />
                                    <col style="width:160px;" />
                                    <col style="width:120px;" />
                                    <col style="width:100px;" />
                                    <col style="width:90px;" />
                                    <col style="width:90px;" />
                                    <col style="width:90px;" />
                                    <col style="width:90px;" />
                                    <col />
                                    <col style="width: 18px;" />
                                </colgroup>
                                <thead>
                                    <tr>
                                        <th>
                                            <label class="btn" for="CheckAll" style="margin-left:3px;"><input id="CheckAll" type="checkbox" onclick="_InstancePageLines.DoCheckAll($(this), '_check_row');" /><i></i><span></span></label>
                                        </th>
                                        <th style="text-align:center;">#</th>
                                        <th style="text-align:center;">删除</th>
                                        <th>发货地</th>
                                        <th>款号</th>
                                        <th>品名</th>
                                        <th>颜色</th>
                                        <th style="text-align:center;">尺码</th>
                                        <th>生产数</th>
                                        <th>已发货数</th>
                                        <th>应发货数</th>                                                
                                        <th class="edit__column">实际发货数</th>                                                
                                        <th class="edit__column">唛头号</th>
                                        <th></th>
                                    </tr>
                                </thead>
                            </table>
                            <div id="divD21" class="grid__data_wrapper" style="border-left:none; overflow-y:scroll;">
                                <table id="tabData21" class="responsive__table" style="margin-top:-1px;">
                                    <colgroup>
                                        <col style="width:27px;" />
                                        <col style="width:36px;" />
                                        <col style="width:36px;" />
                                        <col style="width:120px;" />
                                        <col style="width:260px;" />
                                        <col style="width:160px;" />
                                        <col style="width:120px;" />
                                        <col style="width:100px;" />
                                        <col style="width:90px;" />
                                        <col style="width:90px;" />
                                        <col style="width:90px;" />
                                        <col style="width:90px;" />
                                        <col />
                                    </colgroup>
                                    <tbody></tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
